package com.zzyl.radis;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;

@SpringBootTest
public class test {

    @Autowired
    private RedisTemplate<String, String> redisTemplate;

    @Test
    public void test01() {
        redisTemplate.opsForValue().set("name", "张三");
    }

    @Test
    public void test02() {
        redisTemplate.opsForHash().put("user", "name", "张三");
        redisTemplate.opsForHash().put("user", "age", "20");
        redisTemplate.opsForHash().put("user", "addr", "bj");
    }

    @Test
    public void test03() {

    }

    @Test
    public void test04() {

    }

    @Test
    public void test05() {

    }

    @Test
    public void test06() {

    }
}
